package org.orz.story.works.biz.clubhouse.web.frontend;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.orz.cloud.common.result.ResultDTO;
import org.orz.story.works.biz.clubhouse.model.resp.ListNbaScheduleResp;
import org.orz.story.works.biz.clubhouse.service.NbaScheduleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("clubHouse/nbaSchedule")
@Slf4j
@Api(tags = "nba赛程接口")
public class NbaScheduleController {
    @Autowired
    private NbaScheduleService nbaScheduleService;

    @PostMapping("listNbaSchedule")
    @ApiOperation("查询nba赛程列表")
    public ResultDTO<List<ListNbaScheduleResp>> listNbaSchedule(){
        return ResultDTO.success(nbaScheduleService.listNbaSchedule());
    }
}
